package com.yc.damai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.List;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author ly
 * @since 2024-09-28
 */
@Getter
@Setter
  @TableName("dm_promotion")
public class DmPromotion implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

    private String title;

    private Timestamp begin;

    private Timestamp end;

    private Integer uid;

    private LocalDateTime createTime;

    private int status;

    @TableField(exist = false)
    private List<DmPromotionDetail> details;
}
